﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace House.Server.WebApi.ViewModel
{
    public class MenuInfoViewModel
    {

        public static dynamic MenuSelect()
        {
            Service.System_MenuInfoService MenuService = new Service.System_MenuInfoService();
            return MenuService.Select(); 
        }
        /// <summary>
        /// 根据父节点查询信息
        /// </summary>
        /// <param name="ParentID">父节点</param>
        /// <returns></returns>
        public static dynamic MenuSelectByParentID(int ParentID)
        {
            Service.System_MenuInfoService MenuService = new Service.System_MenuInfoService();
            return MenuService.MenuInfoSelectByID(ParentID);
        }
    }
}